﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Repositories;

namespace mozhi.smarterp.Business
{
    public interface IDocumentRepository<TEntity, TKey> : IRepository<TEntity, TKey> where TEntity : DocumentAggregateRoot, IEntity<TKey>
    {
        Task<int> GetCountAsync(string number, Guid? excludeId, CancellationToken cancellationToken = default(CancellationToken));

        Task<string> GetLastNumberAsnyc(CancellationToken cancellationToken = default(CancellationToken));
    }
}
